// ---------- string properties ----------


//Dutch textstrings
//var st_3 = 'Voeg de film "';
//var st_4 = '" toe aan de leenlijst?';

//English textstrings
var st_3 = 'Add movie "';
var st_4 = '" to your Buy List?';

  
// ---------- end of properties ----------


function BuyItem(newItem, newPrice, newQuantity)
{
	if (confirm(st_3 + newItem + st_4))
	{
		index = document.cookie.indexOf("BuyItems");
		countbegin = (document.cookie.indexOf("=", index) + 1);
    countend = document.cookie.indexOf(";", index);
    if (countend == -1)
    {
      countend = document.cookie.length;
    }
    document.cookie="BuyItems="+document.cookie.substring(countbegin, countend)+"["+newItem+","+newPrice+"#"+newQuantity+"]; path=/";
	}
	return true;
}